import instance from "@/http/index"

// 注册

export const register = data => {
    return instance({
        url: "/api/register",
        method: "POST",
        data
    })
}

// 登录

export const login = data => {
    return instance({
        url: "/api/login",
        method: "POST",
        data
    })
}

// 忘记密码验证
export const verify = data => {
    return instance({
        url: "/user/verifyAccountAndEmail",
        method: "POST",
        data
    })
}

// 密码重置
export const restPassword = data => {
    return instance({
        url: "/user/changePasswordInLogin",
        method: "POST",
        data
    })
}